package com.example.service;

import com.example.entity.User;
import com.example.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wgw1206798585@vip.qq.com
 * @version 1.0
 * @date 2020-03-13 22:14
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User login(String userName, String passWord) {
        return userMapper.login(userName, passWord);
    }

    public int register(User user) {
        return userMapper.register(user);
    }
}
